From: Keir Fraser Date: Fri, 9 Oct 2009 07:53:42 +0000 (+0100) Subject: xend: Fix bug in superpage flag handling X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13244 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d6800376671be223de46ab455a8cdc7bae2dc994;p=xen.git xend: Fix bug in superpage flag handling During testing I discovered that using a bootloader magically clears the superpage flag out of the config. This small patch fixes that behavior. From: Dave McCracken Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index ac5f66c675..347639920e 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -2017,7 +2017,9 @@ class XendConfig(dict): self['use_tmp_kernel'] = False self['use_tmp_ramdisk'] = False - self['superpages'] = sxp.child_value(image_sxp, 'superpages',0) + val = sxp.child_value(image_sxp, 'superpages') + if val is not None: + self['superpages'] = val for key in XENAPI_PLATFORM_CFG_TYPES.keys(): val = sxp.child_value(image_sxp, key, None)